<div class="divColorbox">
    <div class="divColorbox_Header">
        <span><i class="fa fa-star"></i><span>用户信息</span></span>
        <a class="Refresh"></a><a class="Close"></a>
    </div>
    <div class="divColorbox_Body row">
        <ul id="MenuTabs" class="nav nav-tabs">
            <li><a data-toggle="tab" href="#MenuTabs_Base">基本信息</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Mobile" data-permission-code="{User}[Base](Mobile-List)">移动设备</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_BankTrade" data-permission-code="{User}[Base](BankTrade-List)">交易记录</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Package" data-permission-code="{User}[Base](Package-List)">包裹物品</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_PackageTrade" data-permission-code="{User}[Base](PackageTrade-List)">包裹交易记录</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Task">任务记录</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Login" data-permission-code="{Base}[Log](Login-List)">登录日志</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Operation" data-permission-code="{Base}[Log](User-Operation-List)">操作日志</a></li>
        </ul>
        <div class="tab-content">
            <div id="MenuTabs_Base" class="tab-pane">
                <div class="row">
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">用户ID</span>
                            <input id="User_ID" type="text" class="form-control" readonly/>
                            <span id="OAuth_QQ_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="QQ登录已绑定">
                                <i class="fa fa-qq text-primary"></i>
                            </span>
                            <span id="OAuth_Weixin_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微信登录已绑定">
                                <i class="fa fa-weixin text-success"></i>
                            </span>
                            <span id="OAuth_Weibo_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微博登录已绑定">
                                <i class="fa fa-weibo text-danger"></i>
                            </span>
                            <span class="input-group-btn">
                                <a id="IsAnchor" class="btn btn-sm btn-success hidden" data-rel="tooltip" data-placement="bottom" data-original-title="艺人帐号">艺</a>
                                <a id="IsFamily" class="btn btn-sm btn-info hidden" data-rel="tooltip" data-placement="bottom" data-original-title="公会帐号">家</a>
                                <a id="IsAdmin" class="btn btn-sm btn-danger hidden" data-rel="tooltip" data-placement="bottom" data-original-title="管理员帐号">管</a>
                                <a id="UserAvatar" target="_blank" class="btn btn-sm" data-rel="tooltip" data-placement="left" data-original-title="用户头像" data-trigger="hover"><i class="fa fa-picture-o"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">首充时间</span>
                            <input id="Charge_First" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">状态</span>
                            <input id="Status_Name" type="text" class="form-control" readonly/>
                            <span class="input-group-addon">
                                <i id="Status" class="fa"></i>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">昵称</span>
                            <input id="NickName" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">真实姓名</span>
                            <input id="RealName" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">实名证件</span>
                            <input id="IDCard" type="text" class="form-control" readonly/>
                            <span class="input-group-addon" data-rel="tooltip" data-placement="left">
                                <i id="IDCard_Status" class="fa"></i>
                            </span>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Base](Info-IDCard)">
                                <a id="IDCard_A" class="btn btn-sm btn-info" target="_blank">正面</a>
                                <a id="IDCard_B" class="btn btn-sm" target="_blank">背面</a>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">手机号</span>
                            <input id="Phone" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">QQ号</span>
                            <input id="QQ" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">VIP</span>
                            <input id="VIP_ExpireDay" type="text" class="form-control" readonly/>
                            <span class="input-group-addon" data-rel="tooltip" data-placement="left">
                                <i id="VIP" class="fa"></i>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">性别</span>
                            <input id="Sex" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">粉丝数</span>
                            <input id="Fans" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">关注数</span>
                            <input id="Attention" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">生日</span>
                            <input id="Birthday" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">星座</span>
                            <input id="Constellation" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">邮箱</span>
                            <input id="Email" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">所在省</span>
                            <input id="Province" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">所在市</span>
                            <input id="City" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">经验</span>
                            <input id="EXP" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">金币</span>
                            <input id="Coin" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">金豆</span>
                            <input id="Beans" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">星星</span>
                            <input id="Pomelo" type="text" class="form-control" data-rel="tooltip" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">渠道ID</span>
                            <input id="Channel_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden">
                                <a id="Channel_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">邀请人ID</span>
                            <input id="Inviter_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden">
                                <a id="Inviter_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">转化艺人</span>
                            <input id="SignUp_Anchor_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Anchor](Info)">
                                <a id="SignUp_Anchor_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">转化公会</span>
                            <input id="SignUp_Anchor_Family_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Family](Info)">
                                <a id="SignUp_Anchor_Family_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">注册页面</span>
                            <input id="SignUp_Url" type="text" class="form-control" readonly/>
                            <span class="input-group-btn hidden">
                                <a id="SignUp_Url_Info" class="btn btn-sm" target="_blank"><i class="fa fa-link"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">用户签名</span>
                            <input id="Signature" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">注册时间</span>
                            <input id="Create_Date" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">注册IP</span>
                            <input id="Create_IP" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">最近登录</span>
                            <input id="Login_This_Date" type="text" class="form-control" data-rel="tooltip" data-html="true" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">登录次数</span>
                            <input id="Login_Count" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="hr"></div>
                <div class="accordion-style1 accordion-style2 panel-group no-margin-bottom">
                    <div class="panel">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a class="accordion-toggle collapsed" data-toggle="collapse" href="#collapseMountsList">
                                    <i class="ace-icon fa fa-plus bigger-110" data-icon-hide="ace-icon fa fa-minus"
                                       data-icon-show="ace-icon fa fa-plus"></i>
                                    &nbsp;用户坐骑列表
                                </a>
                            </h4>
                        </div>
                        <div class="panel-collapse collapse" id="collapseMountsList">
                            <div class="panel-body" style="padding: 2px 0 0 0;">
                                <table id="dtpMounts" class="dataTable"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Mobile" class="tab-pane">
                <table id="dtpMobile" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="6">本页合计：</td>
                        <td>
                            <span name="Open_Count"/>
                        </td>
                        <td colspan="3"></td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpMobile_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpMobile_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Mobile_ID">设备ID</option>
                            <option value="Equipment_Name">设备名称</option>
                            <option value="Equipment_Code">设备编码</option>
                            <option value="OS_Version">操作系统</option>
                            <option value="APP_Version">应用版本</option>
                        </select>
                        <input id="dtpMobile_F_SValue" class="fvalue" type="text"/>
                        <select id="dtpMobile_F_DateType">
                            <option value="Create_Date">创建时间</option>
                            <option value="Open_Last_Date">最后启动</option>
                        </select>
                        <input id="dtpMobile_F_StartDate" type="text" style="width: 76px;" placeholder="开始时间">
                        <label>-</label>
                        <input id="dtpMobile_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpMobile_F_SelectDate"></select>
                        <!--<label>设备类型：</label>-->
                        <select id="dtpMobile_F_EquipmentType">
                            <option value="">所有设备</option>
                            <option value="1">Android</option>
                            <option value="2">Android Pad</option>
                            <option value="3">iphone</option>
                            <option value="4">ipad</option>
                        </select>
                        <label>状态：</label>
                        <select id="dtpMobile_F_Status">
                            <option value="-1">所有</option>
                            <option value="0" selected="selected">正常</option>
                            <option value="1">锁定</option>
                        </select>
                        <button id="dtpMobile_F_Btn"></button>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_BankTrade" class="tab-pane">
                <table id="dtpBankTrade" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="5">本页合计：</td>
                        <td>
                            <ins name="Trade_Amt"></ins>
                        </td>
                        <td colspan="4"></td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpBankTrade_filter" class="dataTables_filter">
                    <div>
                        <input id="dtpBankTrade_F_TradeOrderNo" class="fvalue" type="text" placeholder="单据号"/>
                        <input id="dtpBankTrade_F_StartDate" type="text" style="width: 76px;" placeholder="交易时间">
                        <label>-</label>
                        <input id="dtpBankTrade_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpBankTrade_F_SelectDate"></select>
                        <select id="dtpBankTrade_F_TradeCurrency" style="width: 93px;" data-databind="TradeCurrency" placeholder="币种过滤…"></select>
                        <select id="dtpBankTrade_F_TradeType" style="width: 140px;" data-databind="UserBankTransaction" placeholder="交易类型过滤…"></select>
                        <button id="dtpBankTrade_F_Btn"></button>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Package" class="tab-pane">
                <table id="dtpPackage" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="3">本页合计：</td>
                        <td>
                            <span name="Num"/>
                        </td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpPackage_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpPackage_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Item_ID">物品ID</option>
                            <option value="Item_Name">物品名称</option>
                        </select>
                        <input id="dtpPackage_F_SValue" class="fvalue" type="text"/>
                        <select id="dtpPackage_F_ItemType" style="width: 120px;" data-databind="UserPackageItemType" placeholder="物品类型过滤…"></select>

                        <button id="dtpPackage_F_Btn"></button>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_PackageTrade" class="tab-pane">
                <table id="dtpPackageTrade" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="6">本页合计：</td>
                        <td>
                            <span name="Trade_Num"/>
                        </td>
                        <td>
                            <span name="Num"/>
                        </td>
                        <td colspan="2"></td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpPackageTrade_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpPackageTrade_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Item_ID">物品ID</option>
                            <option value="Item_Name">物品名称</option>
                            <option value="Trade_Order_No">相关单据号</option>
                        </select>
                        <input id="dtpPackageTrade_F_SValue" class="fvalue" type="text"/>
                        <input id="dtpPackageTrade_F_StartDate" type="text" style="width: 76px;" placeholder="交易时间">
                        <label>-</label>
                        <input id="dtpPackageTrade_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpPackageTrade_F_SelectDate"></select>
                        <select id="dtpPackageTrade_F_ItemType" style="width: 120px;" data-databind="UserPackageItemType" placeholder="物品类型过滤…"></select>
                        <select id="dtpPackageTrade_F_TradeType" style="width: 150px;" data-databind="UserPackageTransaction" placeholder="包裹交易类型过滤…"></select>

                        <button id="dtpPackageTrade_F_Btn"></button>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Task" class="tab-pane">
                <table id="dtpUserTask" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="5">本页合计：</td>
                        <td>
                            <span name="Task_Reward"/>
                        </td>
                        <td colspan="3"></td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpUserTask_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpUserTask_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Task_ID">任务ID</option>
                            <option value="Task_Name">任务名称</option>
                        </select>
                        <input id="dtpUserTask_F_SValue" class="fvalue" type="text"/>
                        <input id="dtpUserTask_F_StartDate" type="text" style="width: 76px;" placeholder="交易时间">
                        <label>-</label>
                        <input id="dtpUserTask_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpUserTask_F_SelectDate"></select>
                        <label>状态：</label>
                        <select id="dtpUserTask_F_Status">
                            <option value="-1" selected="selected">所有</option>
                            <option value="0">已领取</option>
                            <option value="1">执行中</option>
                            <option value="2">已完成</option>
                            <option value="3">已失效</option>
                        </select>
                        <label>任务模式：</label>
                        <select id="dtpUserTask_F_TaskMode">
                            <option value="">全部</option>
                            <option value="ONE">个数</option>
                            <option value="DAY">天数</option>
                            <option value="WEEK">星期</option>
                            <option value="MONTH">月份</option>
                            <option value="YEAR">年份</option>
                        </select>
                        <select id="dtpUserTask_F_DateType">
                            <option value="Create_Date">创建时间</option>
                            <option value="Completion_Date">完成时间</option>
                        </select>
                        <button id="dtpUserTask_F_Btn"></button>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Login" class="tab-pane">
                <table id="dtpUserLogin" class="dataTable">
                </table>
                <div id="dtpUserLogin_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpUserLogin_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Log_ID">日志ID</option>
                            <option value="User_ID">用户ID</option>
                            <option value="NickName">用户昵称</option>
                            <option value="RealName">真实姓名</option>
                            <option value="Channel_ID">渠道ID</option>
                            <option value="Inviter_ID">邀请人ID</option>
                            <option value="SignUp_Anchor_ID">转化房间ID</option>
                            <option value="SignUp_Anchor_Family_ID">转化公会ID</option>
                        </select>
                        <input id="dtpUserLogin_F_SValue" class="fvalue" type="text"/>
                        <select id="dtpUserLogin_F_DateType">
                            <option value="Create_Date">登录时间</option>
                            <option value="SignUp_Date">注册时间</option>
                        </select>
                        <input id="dtpUserLogin_F_StartDate" type="text" style="width: 76px;" placeholder="开始时间">
                        <label>-</label>
                        <input id="dtpUserLogin_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpUserLogin_F_SelectDate"></select>
                        <label>登录方式：</label>
                        <select id="dtpUserLogin_F_SignInType">
                            <option value="-1">所有</option>
                            <option value="1">记住</option>
                            <option value="2">用户名（手机）</option>
                            <option value="10">QQ</option>
                            <option value="11">微信</option>
                            <option value="12">微博</option>
                        </select>
                        <a id="dtpUserLogin_F_Advanced"></a>
                        <button id="dtpUserLogin_F_Btn"></button>
                    </div>
                    <div>
                        <label>注册源：</label>
                        <select id="dtpUserLogin_F_SignUpOrigin">
                            <option value="">所有</option>
                            <option value="0">PC</option>
                            <option value="100">Android</option>
                            <option value="300">iOS</option>
                        </select>
                        <label>登录源：</label>
                        <select id="dtpUserLogin_F_SignInOrigin">
                            <option value="">所有</option>
                            <option value="0">PC</option>
                            <option value="100">Android</option>
                            <option value="300">iOS</option>
                        </select>
                        <label><input id="dtpUserLogin_F_IsChargeFirst" type="checkbox"/>&nbsp;首充</label>
                        <label><input id="dtpUserLogin_F_IsIDCard" type="checkbox"/>&nbsp;实名</label>
                        <label><input id="dtpUserLogin_F_IsAnchor" type="checkbox"/>&nbsp;艺人</label>
                        <label><input id="dtpUserLogin_F_IsFamily" type="checkbox"/>&nbsp;公会</label>
                        <label><input id="dtpUserLogin_F_IsAdmin" type="checkbox"/>&nbsp;管理员</label>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Operation" class="tab-pane">
                <table id="dtpUserOperation" class="dataTable">
                </table>
                <div id="dtpUserOperation_filter" class="dataTables_filter">
                    <div>
                        <select id="dtpUserOperation_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                            <option value="">模糊查询</option>
                            <option data-divider="true"></option>
                            <option value="Log_ID">日志ID</option>
                            <option value="User_ID">用户ID</option>
                            <option value="NickName">用户昵称</option>
                            <option value="RealName">真实姓名</option>
                        </select>
                        <input id="dtpUserOperation_F_SValue" class="fvalue" type="text"/>
                        <label>操作时间</label>
                        <input id="dtpUserOperation_F_StartDate" type="text" style="width: 76px;" placeholder="开始时间">
                        <label>-</label>
                        <input id="dtpUserOperation_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                        <select id="dtpUserOperation_F_SelectDate"></select>
                        <button id="dtpUserOperation_F_Btn"></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="divColorbox_Footer">
        <div id="divPaginate_Mobile" class="Paginate" MenuTabs="#MenuTabs_Mobile"></div>
        <div id="divPaginate_BankTrade" class="Paginate" MenuTabs="#MenuTabs_BankTrade"></div>
        <div id="divPaginate_Package" class="Paginate" MenuTabs="#MenuTabs_Package"></div>
        <div id="divPaginate_PackageTrade" class="Paginate" MenuTabs="#MenuTabs_PackageTrade"></div>
        <div id="divPaginate_Task" class="Paginate" MenuTabs="#MenuTabs_Task"></div>
        <div id="divPaginate_Login" class="Paginate" MenuTabs="#MenuTabs_Login"></div>
        <div id="divPaginate_Operation" class="Paginate" MenuTabs="#MenuTabs_Operation"></div>
        <button type="button" id="btnPassword" class="btn btn-info" MenuTabs="#MenuTabs_Base" RightCode="{User}[Base](Edit-Password)">
            <i class="fa fa-key"></i> 重置密码
        </button>
        <button type="button" id="btnEdit" class="btn btn-info" MenuTabs="#MenuTabs_Base" RightCode="{User}[Base](Edit)">
            <i class="fa fa-pencil"></i> 修改资料
        </button>
        <button type="button" id="btnUndo"></button>
    </div>
</div>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.min.js"></script>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.bootstrap.min.js"></script>
<script>
    $(function () {
        //region 判断flag
        if (_PageData.flag !== 0) {
            $.KOC.Tips.Open('Error', _PageData.flag, {
                Timeout: 1000,
                onClose: function () {
                    parent.$.colorbox.close();
                }
            });
            return;
        }
        //endregion
        //region 按钮事件
        $('#btnEdit').click(function () {
            $.CommonAdmin.OpenWindow(':UserEdit:' + _PageData.User_ID + '|EnterClose:true', function () {
                location.reload(true);
            });
        });
        $('#btnPassword').click(function () {

        });
        //endregion
        //region 页面数据绑定
        $('#User_ID').val(_PageData.User_ID);
        if (_PageData.User_Info.OAuth_QQ_ID) {
            $('#OAuth_QQ_ID').removeClass('hidden');
        }
        if (_PageData.User_Info.OAuth_Weixin_ID) {
            $('#OAuth_Weixin_ID').removeClass('hidden');
        }
        if (_PageData.User_Info.OAuth_Weibo_ID) {
            $('#OAuth_Weibo_ID').removeClass('hidden');
        }
        if (_PageData.User_Info.IsAnchor) {
            $('#IsAnchor').attr('data-openwindow', ':UserAnchorInfo:' + _PageData.User_ID).removeClass('hidden');
        }
        if (_PageData.User_Info.IsAdmin) {
            $('#IsAdmin').attr('data-openwindow', ':UserAdminInfo:' + _PageData.User_ID).removeClass('hidden');
        }
        if (_PageData.User_Info.IsFamily) {
            $('#IsFamily').attr('data-openwindow', ':FamilyInfo:' + _PageData.User_Family.Family_ID).removeClass('hidden');
        }
        $('#UserAvatar').attr('href', $.Common.ImageBind.UserAvatar.fnURL(_PageData.User_ID, '-1.-1'));
        /////////////////首充!!!!!s
        switch (_PageData.User_Info.Status) {
            case 0:
                $('#Status_Name').val('正常');
                $('#Status').addClass('fa-check green');
                break;
            case 1:
                $('#Status_Name').val('锁定');
                $('#Status').addClass('fa-lock red');
                break;
            default:
                $('#Status_Name').val('未知');
                $('#Status').addClass('fa-question');
                break;
        }
        $('#NickName').val(_PageData.User_Info.NickName);
        $('#RealName').val(_PageData.User_Info.RealName);
        $('#IDCard').val(_PageData.User_Info.IDCard);
        switch (_PageData.User_Info.IDCard_Status) {
            case 0:
                $('#IDCard_Status').addClass('fa-check green').parent().attr('data-origin-title', '实名通过：时间XXXX');
                break;
            case 1:
                $('#IDCard_Status').addClass('fa-clock-o').parent().attr('data-origin-title', '等待实名审核');
                break;
            case 2:
                $('#IDCard_Status').addClass('fa-ban red').parent().attr('data-origin-title', '实名审核驳回');
                break;
            case -1:
                $('#IDCard_Status').addClass('fa-times').parent().attr('data-origin-title', '未提交实名信息');
                break;
            default:
                $('#IDCard_Status').addClass('fa-question').parent().attr('data-origin-title', '未知状态');
                break;
        }
        if (_.includes([0, 1, 2], _PageData.User_Info.IDCard_Status)) {
            $('#IDCard_A').attr('href', $.Common.ImageBind.UserIDCard.fnURL(_PageData.User_ID, "a")).parent().removeClass('hidden');
            $('#IDCard_B').attr('href', $.Common.ImageBind.UserIDCard.fnURL(_PageData.User_ID, "b"));
        }
        $('#Phone').val(_PageData.User_Info.Phone);
        $('#QQ').val(_PageData.User_Info.QQ);
        if (_PageData.User_Info.VIP) {
            $('#VIP_ExpireDay').val('剩余 ' + _PageData.User_Info.VIP_ExpireDay + ' 天').attr({
                'data-rel': 'tooltip',
                'data-original-title': '到期时间：' + moment(_PageData.User_Info.VIP_Expire).format('YYYY/MM/DD')
            });
            $('#VIP').addClass('fa-check green');
        } else {
            $('#VIP_ExpireDay').val('否');
            $('#VIP').addClass('fa-ban');
        }
        switch (_PageData.User_Info.Sex) {
            case 1:
                $('#Sex').val('男');
                break;
            case 2:
                $('#Sex').val('女');
                break;
            default:
                $('#Sex').val('未知');
                break;
        }
        $('#Fans').val(_PageData.User_Info.Fans);
        $('#Attention').val(_PageData.User_Info.Attention);
        $('#Birthday').val(_PageData.User_Info.Birthday ? moment(_PageData.User_Info.Birthday).format('YYYY/MM/DD') : '');
        $('#Constellation').val(_PageData.User_Info.Constellation);
        $('#Email').val(_PageData.User_Info.Email);
        $('#Province').val(_PageData.User_Info.Province);
        $('#City').val(_PageData.User_Info.City);
        $('#EXP').val(_PageData.User_Info.EXP + ' / ' + _PageData.User_Info.Level_Name + '(' + _PageData.User_Info.Level + ')');
        $('#Coin').val(_PageData.User_Info.Coin);
        $('#Beans').val(_PageData.User_Info.Beans);
        $('#Pomelo').val(_PageData.User_Info.Pomelo);
        if (_PageData.User_Info.Pomelo_Get_Date) {
            $('#Pomelo').attr('data-original-title', '最后获取：' + moment(_PageData.User_Info.Pomelo_Get_Date).format('YY/MM/DD HH:mm:ss'));
        }
        if (_PageData.User_Info.Channel_ID) {
            $('#Channel_ID').val(_PageData.User_Info.Channel_ID);
            $('#Channel_ID_Info').parent().removeClass('hidden');
        }
        if (_PageData.User_Info.Inviter_ID > 0) {
            $('#Inviter_ID').val(_PageData.User_Info.Inviter_ID);
            $('#Inviter_ID_Info')
                .attr('data-openwindow', ':UserInfo:' + _PageData.User_Info.Inviter_ID)
                .parent().removeClass('hidden');
        }
        if (_PageData.User_Info.SignUp_Anchor_ID > 0) {
            $('#SignUp_Anchor_ID').val(_PageData.User_Info.SignUp_Anchor_ID);
            $('#SignUp_Anchor_ID_Info')
                .attr('data-openwindow', ':UserAnchorInfo:' + _PageData.User_Info.SignUp_Anchor_ID)
                .parent().removeClass('hidden');
        }
        if (_PageData.User_Info.SignUp_Anchor_Family_ID > 0) {
            $('#SignUp_Anchor_Family_ID').val(_PageData.User_Info.SignUp_Anchor_Family_ID);
            $('#SignUp_Anchor_Family_ID_Info')
                .attr('data-openwindow', ':FamilyInfo:' + _PageData.User_Info.SignUp_Anchor_Family_ID)
                .parent().removeClass('hidden');
        }
        $('#SignUp_Url').val(_PageData.User_Info.SignUp_Url);
        if (_PageData.User_Info.SignUp_Url && _PageData.User_Info.SignUp_Url.indexOf('http') == 0) {
            $('#SignUp_Url_Info').attr('href', _PageData.User_Info.SignUp_Url).parent().removeClass('hidden');
        }
        $('#Signature').val(_PageData.User_Info.Signature);
        $('#Create_Date').val(moment(_PageData.User_Info.Create_Date).format('YYYY/MM/DD HH:mm:ss'));
        $('#Create_IP').val(_PageData.User_Info.Create_IP);
        if (_PageData.User_Info.Login_This_Date) {
            $('#Login_This_Date')
                .val(moment(_PageData.User_Info.Login_This_Date)
                    .fromNow()).attr('data-original-title', '最后登录时间：' + moment(_PageData.User_Info.Login_This_Date).format('YY/MM/DD HH:mm:ss') + '<br/>最后登录IP：' + _PageData.User_Info.Login_This_IP);
        }
        $('#Login_Count').val(_PageData.User_Info.Login_Count);
        //endregion
        //region 时间输入框插件
        $('#dtpBankTrade_F_StartDate, ' +
            '#dtpBankTrade_F_EndDate,' +
            '#dtpMobile_F_StartDate,' +
            '#dtpMobile_F_EndDate,' +
            '#dtpPackageTrade_F_StartDate,' +
            '#dtpPackageTrade_F_EndDate,' +
            '#dtpUserTask_F_StartDate,' +
            '#dtpUserTask_F_EndDate,' +
            '#dtpUserLogin_F_StartDate,' +
            '#dtpUserLogin_F_EndDate,' +
            '#dtpUserOperation_F_StartDate,' +
            '#dtpUserOperation_F_EndDate'
        ).datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            minView: 2,
            autoclose: true
        });
        //endregion
        //region 绑定日期选择框
        $.KOC.Date.Select.Bind({
            eSelect: $('#dtpBankTrade_F_SelectDate,#dtpMobile_F_SelectDate,#dtpPackageTrade_F_SelectDate,#dtpUserTask_F_SelectDate,#dtpUserLogin_F_SelectDate,#dtpUserOperation_F_SelectDate'),
            eBegin: $('#dtpBankTrade_F_StartDate,#dtpMobile_F_StartDate,#dtpPackageTrade_F_StartDate,#dtpUserTask_F_StartDate,#dtpUserLogin_F_StartDate,#dtpUserOperation_F_StartDate'),
            eEnd: $('#dtpBankTrade_F_EndDate,#dtpMobile_F_EndDate,#dtpPackageTrade_F_EndDate,#dtpUserTask_F_EndDate,#dtpUserLogin_F_EndDate,#dtpUserOperation_F_EndDate')
        });
        //endregion
        //region dtpMounts
        $('#dtpMounts').dataTable({
            //列信息
            'aoColumns': [
                {'sWidth': '10%', 'data': 'Mounts_ID', 'sTitle': '座骑ID', 'sClass': 'center'},
                {'data': 'Mounts_Name', 'sTitle': '座骑名称'},
                {'sWidth': '8%', 'data': 'Mounts_ExpireDay', 'sTitle': '剩余天数', 'sClass': 'center t-right'},
                {
                    'sWidth': '15%', 'data': 'Mounts_Expire', 'sTitle': '有效日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YYYY/MM/DD HH:mm'));
                    }
                },
                {
                    'sWidth': '15%', 'data': 'Create_Date', 'sTitle': '获得日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YYYY/MM/DD HH:mm'));
                    }
                },
                {
                    'sWidth': '65px', 'data': 'Mounts_ExpireStatus', 'sTitle': '状态', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<span class="label label-success">正常</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-danger">过期</span>');
                                break;
                            default:
                                $(td).html('<span class="label label-default">未知</span>');
                                break;
                        }
                    }
                }
            ],
            'bPaginate': false,
            'bLengthChange': false,
            'bServerSide': false,
            'bProcessing': false,
            'bSort': false,
            'bInfo': false,
            'data': _PageData.User_Mounts,
            'selectOpt': false,
            'fnRowCallback': function (tr, rowData) {
                if (rowData.Mounts_ExpireStatus == 0 && rowData.Mounts_ID == _PageData.User_Info.Mounts_ID) {
                    $(tr).addClass('selected');
                }
            }
        });
        //endregion
        //region dtpMobile
        $("#dtpMobile").dataTable({
            //列信息
            'aoColumns': [
                {'sWidth': '60px', 'data': 'Mobile_ID', 'sTitle': 'ID', 'sClass': 'center', 'bSortable': false},
                {
                    'sWidth': '60px', 'data': 'Equipment_Type', 'sTitle': '设备类型', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 1:
                                $(td).html('<i class="fa fa-android bigger-120" data-rel="tooltip" data-original-title="Android" />');
                                break;
                            case 2:
                                $(td).html('<i class="fa fa-android bigger-120" data-rel="tooltip" data-original-title="Android Pad" />');
                                break;
                            case 3:
                                $(td).html('<i class="fa fa-apple bigger-120" data-rel="tooltip" data-original-title="iphone" />');
                                break;
                            case 4:
                                $(td).html('<i class="fa fa-apple bigger-120" data-rel="tooltip" data-original-title="ipad" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '130px', 'data': 'Equipment_Name', 'sTitle': '设备名称', 'sClass': 'center t-left', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
                {
                    'sWidth': '70px', 'data': 'OS_Version', 'sTitle': '操作系统', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
                {
                    'sWidth': '70px', 'data': 'APP_Version', 'sTitle': '应用版本', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
                {
                    'sWidth': '90px', 'data': null, 'sTitle': '屏幕宽 * 高', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData, rowData) {
                        $(td).text((rowData.Screen_Width > 0 ? rowData.Screen_Width + ' * ' : '') + (rowData.Screen_Height > 0 ? rowData.Screen_Height : ''));
                    }
                },
                {
                    'sWidth': '60px', 'data': 'Open_Count', 'sTitle': '启动', 'sClass': 'center t-right', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
                {
                    'sWidth': '80px', 'data': 'Open_Last_Date', 'sTitle': '最后启动', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData ? moment(cellData).fromNow() : '');
                    }
                },
                {
                    'sWidth': '90px', 'data': 'MobileApp_CreateDate', 'sTitle': '创建时间', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                },
                {
                    'sWidth': '60px', 'data': 'Mobile_Status', 'sTitle': '状态', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<span class="label label-success">正常</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-danger">锁定</span>');
                                break;
                            default:
                                $(td).html('<span class="label label-default">未知</span>');
                                break;
                        }
                    }
                }
            ],
            'aaSorting': [0, 'desc'],
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_Mobile'),
            'sAjaxSource': '/ajax/user.page.usermobile',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_DateType: $(this.selector + '_F_DateType').val(),
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_EquipmentType: $(this.selector + '_F_EquipmentType').val(),
                        F_Status: $(this.selector + '_F_Status').val()
                    };
                } else {
                    $(this.selector + '_F_DateType').val(this.arrPageFilter.F_DateType);
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_EquipmentType').val(this.arrPageFilter.F_EquipmentType);
                    $(this.selector + '_F_Status').val(this.arrPageFilter.F_Status);
                }
                this.ofnServerParams(aoData);
            },
            'fnDrawCallback': function () {
                $.CommonAdmin.Permission.CheckElement(this);
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _Open_Count = 0;
                _.forEach(aData, function (ThisValue) {
                    _Open_Count += ThisValue.Open_Count;
                });
                $(nFoot).find('[name="Open_Count"]').text(_Open_Count);
            }
        });
        //endregion
        //region dtpBankTrade
        $("#dtpBankTrade").dataTable({
            'aoColumns': [
                {
                    'sWidth': '100px', 'data': 'Trade_ID', 'sTitle': '流水号', 'sClass': 'center'
                },
                {
                    'data': 'Trade_Type_Name', 'sTitle': "交易类型", 'sClass': 'center'
                },
                {
                    'sWidth': '136px', 'data': 'Trade_Order_No', 'sTitle': "相关单据号", 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html($('<a/>').attr('data-openwindow', cellData).text(cellData));
                    }
                },
                {
                    'sWidth': '55px', 'data': 'Trade_Currency', 'sTitle': '币种', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 1:
                                $(td).html('<span class="badge badge-info">金币</span>');
                                break;
                            case 2:
                                $(td).html('<span class="badge badge-purple">金豆</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '80px', 'data': 'Trade_Flag', 'sTitle': '方式', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case -1:
                                $(td).html('<span class="label label-danger"><i class="fa fa-sign-out"></i> 出帐</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-success"><i class="fa fa-sign-in"></i> 入帐</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '10%', 'data': 'Trade_Amt', 'sTitle': '交易金额', 'sClass': 'center t-right',
                    'createdCell': function (td, cellData, rowData) {
                        switch (rowData.Trade_Flag) {
                            case -1:
                                $(td).html('<label class="tooltip- red" data-rel="tooltip" data-original-title="价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData / 1000) + '">-' + cellData + '<label>');
                                break;
                            case 1:
                                $(td).html('<label class="tooltip- green" data-rel="tooltip" data-original-title="价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData / 1000) + '">' + cellData + '<label>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '12%', 'data': 'Amt', 'sTitle': '帐户余额', 'sClass': 'center t-right',
                    'createdCell': function (td, cellData) {
                        $(td).html('<span class="tooltip-" data-rel="tooltip" data-original-title="价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData / 1000) + '">' + cellData + '</span>');
                    }
                },
                {
                    'sWidth': "140px", 'data': 'Create_Date', 'sTitle': "交易时间", 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YY/MM/DD HH:mm:ss'));
                    }
                },
                {
                    'sWidth': '15%', 'data': 'Related_User_ID', 'sTitle': '相关用户', 'sClass': 'center t-left',
                    'createdCell': function (td, cellData, rowData) {
                        $(td).html($('<a class="tooltip-"/>').attr({
                            'data-openwindow': ':UserInfo:' + cellData,
                            'data-rel': 'tooltip',
                            'data-original-title': '用户ID：' + cellData
                        }).text(rowData.Related_User_NickName));
                    }
                },
                {
                    'sWidth': '40', 'data': 'Remark', 'sTitle': '注', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html(cellData ? $('<i class="fa fa-exclamation-triangle bigger-120"/>').attr({
                                'data-rel': 'tooltip',
                                'data-placement': 'left',
                                'data-original-title': cellData
                            }) : "");
                    }
                }
            ],
            'bSort': false,
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_BankTrade'),
            'sAjaxSource': '/ajax/user.page.userbanktrade',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_TradeOrderNo: $(this.selector + '_F_TradeOrderNo').val(),
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_TradeCurrency: $(this.selector + '_F_TradeCurrency').val(),
                        F_TradeType: $(this.selector + '_F_TradeType').val()
                    };
                    switch (this.arrPageFilter.F_TradeType) {
                        case 'in':
                            this.arrPageFilter.F_TradeFlag = 1;
                            break;
                        case 'out':
                            this.arrPageFilter.F_TradeFlag = -1;
                            break;
                        default:
                            this.arrPageFilter.F_TradeFlag = 0;
                            break;
                    }
                } else {
                    $(this.selector + '_F_TradeOrderNo').val(this.arrPageFilter.F_TradeOrderNo);
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_TradeCurrency').select2('val', this.arrPageFilter.F_TradeCurrency || "-1");
                    $(this.selector + '_F_TradeType').select2('val', this.arrPageFilter.F_TradeType || "-1");
                }
                this.ofnServerParams(aoData);
            },
            'fnDrawCallback': function () {
                $.CommonAdmin.Permission.CheckElement(this);
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _Trade_Amt = 0;
                _.forEach(aData, function (ThisValue) {
                    _Trade_Amt += ThisValue.Trade_Flag * ThisValue.Trade_Amt;
                });
                $(nFoot).find('[name="Trade_Amt"]').attr('class', (_Trade_Amt < 0 ? 'red' : 'green')).text(_Trade_Amt);
            }
        });
        //endregion
        //region dtpPackage
        $("#dtpPackage").dataTable({
            'aoColumns': [
                {
                    'sWidth': '70px', 'data': 'Item_Type', 'sTitle': "物品类型", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case "Gift":
                                $(td).html('<span class="badge badge-warning">礼物</span>');
                                break;
                            case "Horn":
                                $(td).html('<span class="badge badge-purple">喇叭</span>');
                                break;
                            default:
                                $(td).html('<span class="badge badge-default">未知</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '70px', 'data': 'Item_ID', 'sTitle': '物品ID', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '220px', 'data': 'Item_Name', 'sTitle': '物品名称', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '50px', 'data': 'Num', 'sTitle': "剩余数量", 'sClass': 'center t-right', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        if (cellData > 0) {
                            $(td).text(cellData);
                        }
                    }
                }
            ],
            'aaSorting': [0, 'desc'],
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_Package'),
            'sAjaxSource': '/ajax/user.page.userpackage',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_ItemType: $(this.selector + '_F_ItemType').val()
                    };
                } else {
                    $(this.selector + '_F_ItemType').select2('val', this.arrPageFilter.F_ItemType || 'Gift');
                }
                this.ofnServerParams(aoData);
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _Num = 0;
                _.forEach(aData, function (ThisValue) {
                    _Num += ThisValue.Num;
                });
                $(nFoot).find('[name="Num"]').text(_Num);
            },
            'fnDrawCallback': function () {
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            }

        });
        //endregion
        //region dtpPackageTrade
        $("#dtpPackageTrade").dataTable({
            'aoColumns': [
                {
                    'sWidth': '100px', 'data': 'Trade_Order_No', 'sTitle': "相关单据号", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).html($('<a/>').attr('data-openwindow', cellData).text(cellData));
                    }
                },
//                {
//                    'sWidth': '90px', 'data': 'Trade_ID', 'sName': 'Trade_ID', 'sTitle': '流水号', 'sClass': 'center'
//                },
                {
                    'sWidth': '60px', 'data': 'Item_Type', 'sTitle': "物品类型", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case "Gift":
                                $(td).html('<i class="fa fa-gift bigger-120" data-rel="tooltip" data-original-title="礼物" />');
                                break;
                            case "Horn":
                                $(td).html('<i class="fa fa-bullhorn bigger-120" data-rel="tooltip" data-original-title="喇叭" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '60px', 'data': 'Item_ID', 'sTitle': '物品ID', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '90px', 'data': 'Item_Name', 'sTitle': '物品名称', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '110px', 'data': 'Trade_Type_Name', 'sTitle': "交易类型", 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '80px', 'data': 'Trade_Flag', 'sTitle': '方式', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case -1:
                                $(td).html('<span class="label label-danger"><i class="fa fa-sign-out"></i> 出帐</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-success"><i class="fa fa-sign-in"></i> 入帐</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '70px', 'data': 'Trade_Num', 'sTitle': "交易数量", 'sClass': 'center t-right', 'bSortable': false,
                    'createdCell': function (td, cellData, rowData) {
                        switch (rowData.Trade_Flag) {
                            case -1:
                                $(td).html('<span class="red">-' + cellData + '</span>');
                                break;
                            case 1:
                                $(td).html('<span class="green">' + cellData + '</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '70px', 'data': 'Num', 'sTitle': "剩余数量", 'sClass': 'center t-right', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        if (cellData > 0) {
                            $(td).text(cellData);
                        }
                    }
                },
                {
                    'sWidth': '130px', 'data': 'Remark', 'sTitle': "备注", 'sClass': 'center t-left', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).html('<span class="tooltip-" data-rel="tooltip" data-original-title="备注：' + cellData + '">' + cellData + '</span>');
                    }
                },
                {
                    'sWidth': "90px", 'data': 'Create_Date', 'sTitle': "交易时间", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                }
            ],
            'aaSorting': [0, 'desc'],
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_PackageTrade'),
            'sAjaxSource': '/ajax/user.page.userpackagetrade',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_ItemType: $(this.selector + '_F_ItemType').val(),
                        F_TradeType: $(this.selector + '_F_TradeType').val()
                    };
                    switch (this.arrPageFilter.F_TradeType) {
                        case 'in':
                            this.arrPageFilter.F_TradeFlag = 1;
                            break;
                        case 'out':
                            this.arrPageFilter.F_TradeFlag = -1;
                            break;
                        default:
                            this.arrPageFilter.F_TradeFlag = 0;
                            break;
                    }
                } else {
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_ItemType').select2('val', this.arrPageFilter.F_ItemType || 'Gift');
                    $(this.selector + '_F_TradeType').select2('val', this.arrPageFilter.F_TradeType || "-1");
                }
                this.ofnServerParams(aoData);
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _Trade_Num = 0, _Num = 0;
                _.forEach(aData, function (ThisValue) {
                    _Trade_Num += ThisValue.Trade_Flag * ThisValue.Trade_Num;
                    _Num += ThisValue.Num;
                });
                $(nFoot).find('[name="Trade_Num"]').attr('class', (_Trade_Num < 0 ? 'red' : 'green')).text(_Trade_Num);
                $(nFoot).find('[name="Num"]').text(_Num);
            },
            'fnDrawCallback': function () {
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            }
        });
        //endregion
        //region dtpUserTask
        $("#dtpUserTask").dataTable({
            'aoColumns': [
                {
                    'sWidth': '70px', 'data': 'Task_ID', 'sTitle': "ID", 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '10%', 'data': 'Task_Name', 'sTitle': "名称", 'sClass': 'center t-left', 'bSortable': false
                },
                {
                    'sWidth': '50px', 'data': 'Task_Mode', 'sTitle': '模式', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '70px', 'data': 'Task_Progress', 'sTitle': "完成度", 'sClass': 'center t-right', 'bSortable': false
                },
                {
                    'sWidth': '80px', 'data': 'Task_Objective', 'sTitle': '目的', 'sClass': 'center t-right', 'bSortable': false
                },
                {
                    'sWidth': '10%', 'data': 'Task_Reward', 'sTitle': "奖励", 'sClass': 'center t-right', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        if (cellData) {
                            $(td).html('<span class="tooltip-" data-rel="tooltip" data-original-title="奖励金币价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData[0].Value / 1000) + '">' + cellData[0].Value + '</span>');
                        }
                    }
                },
                {
                    'sWidth': '85px', 'data': 'Completion_Date', 'sTitle': "完成时间", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                },
                {
                    'sWidth': "85px", 'data': 'Create_Date', 'sTitle': "创建日期", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                },
                {
                    'sWidth': '40px', 'data': 'Status', 'sTitle': "状态", 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<span class="label label-primary">已领取</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-warning">执行中</span>');
                                break;
                            case 2:
                                $(td).html('<span class="label label-success">已完成</span>');
                                break;
                            case 3:
                                $(td).html('<span class="label label-danger">已失效</span>');
                                break;
                            default:
                                $(td).html('<span class="label label-default">未知</span>');
                                break;
                        }
                    }

                }
            ],
            'aaSorting': [0, 'desc'],
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_Task'),
            'sAjaxSource': '/ajax/user.page.usertask',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_DateType: $(this.selector + '_F_DateType').val(),
                        F_TaskMode: $(this.selector + '_F_TaskMode').val(),
                        F_Status: $(this.selector + '_F_Status').val()
                    };
                } else {
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_DateType').val(this.arrPageFilter.F_DateType);
                    $(this.selector + '_F_TaskMode').val(this.arrPageFilter.F_TaskMode);
                    $(this.selector + '_F_Status').val(this.arrPageFilter.F_Status);
                }
                this.ofnServerParams(aoData);
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _Task_Reward = 0;
                _.forEach(aData, function (ThisValue) {
                    _Task_Reward += ThisValue.Task_Reward[0].Value;
                });
                $(nFoot).find('[name="Task_Reward"]').attr({
                    'data-rel': 'tooltip',
                    'data-original-title': '奖励金币价值总计：' + $.KOC.String.ToCurrencyPositiveStr(_Task_Reward / 1000)
                }).text(_Task_Reward);
            },
            'fnDrawCallback': function () {
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            }
        });
        //endregion
        //region dtpUserLogin
        $("#dtpUserLogin").dataTable({
            'aoColumns': [
                {
                    'sWidth': '75px', 'data': 'Log_ID', 'sName': 'Log_ID', 'sTitle': '日志ID', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
//                {
//                    'sWidth': '75px', 'data': 'User_ID', 'sName': 'User_ID', 'sTitle': '用户ID', 'sClass': 'center',
//                    'createdCell': function (td, cellData) {
//                        $(td).html($('<a/>').attr('data-openwindow', ':UserInfo:' + cellData).text(cellData));
//                    }
//                },
//                {
//                    'data': 'NickName', 'sName': 'User_ID', 'sTitle': '昵称', 'sClass': 'center t-left',
//                    'createdCell': function (td, cellData, rowData) {
//                        $(td).html('<span class="Level_User_' + rowData.Level + '"></span>' + cellData);
//                    }
//                },
                {
                    'sWidth': '32px', 'data': 'IsIDCard', 'sTitle': '实', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<i class="fa fa-window-close bigger-120 red" data-rel="tooltip" data-original-title="未认证" />');
                                break;
                            case 1:
                                $(td).html('<i class="fa fa-check-square bigger-120 green" data-rel="tooltip" data-original-title="实名认证" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '32px', 'data': 'IsChargeFirst', 'sTitle': '充', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<i class="fa fa-window-close bigger-120 red" data-rel="tooltip" data-original-title="否" />');
                                break;
                            case 1:
                                $(td).html('<i class="fa fa-check-square bigger-120 green" data-rel="tooltip" data-original-title="是" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '110px', 'data': null, 'sTitle': '高级角色', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData, rowData) {
                        var _html = '';
                        if (rowData.IsAnchor) {
                            _html += '<span class="label label-sm label-success middle" data-rel="tooltip" data-original-title="艺人">艺</span> ';
                        }
                        if (rowData.IsFamily) {
                            _html += '<span class="label label-sm label-info middle" data-rel="tooltip" data-original-title="公会">公</span> ';
                        }
                        if (rowData.IsAdmin) {
                            _html += '<span class="label label-sm label-danger middle" data-rel="tooltip" data-original-title="管理员">管</span> ';
                        }
                        $(td).html(_html);
                    }
                },
                {
                    'sWidth': '80px', 'data': null, 'sTitle': '登录方式', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData, rowData) {
                        var _html = '';
                        if (rowData.SignIn_Type == 1) {
                            _html += '<i class="fa fa-check-square bigger-120" data-rel="tooltip" data-original-title="记住我" /> ';
                        }
                        if (rowData.SignIn_Type == 2) {
                            _html += '<i class="fa fa-phone-square bigger-120 text-warning" data-rel="tooltip" data-original-title="手机验证" /> ';
                        }
                        if (rowData.SignIn_Type == 10) {
                            _html += '<i class="fa fa-qq bigger-120 text-primary" data-rel="tooltip" data-original-title="QQ绑定" /> ';
                        }
                        if (rowData.SignIn_Type == 11) {
                            _html += '<i class="fa fa-weixin bigger-120 text-success" data-rel="tooltip" data-original-title="微信绑定" /> ';
                        }
                        if (rowData.SignIn_Type == 12) {
                            _html += '<i class="fa fa-weibo bigger-120 text-danger" data-rel="tooltip" data-original-title="微博绑定" /> ';
                        }
                        $(td).html(_html);
                    }
                },
                {
                    'sWidth': '9%', 'data': 'Channel_ID', 'sName': 'Channel_ID', 'sTitle': '渠道ID', 'sClass': 'center'
                },
                {
                    'sWidth': '45px', 'data': 'SignUp_Origin', 'sTitle': '注源', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<i class="fa fa-desktop bigger-120" data-rel="tooltip" data-original-title="PC端注册" />');
                                break;
                            case 100:
                                $(td).html('<i class="fa fa-android bigger-120" data-rel="tooltip" data-original-title="Android端注册" />');
                                break;
                            case 300:
                                $(td).html('<i class="fa fa-apple bigger-120" data-rel="tooltip" data-original-title="iOS端注册" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '45px', 'data': 'SignIn_Origin', 'sTitle': '登源', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<i class="fa fa-desktop bigger-120" data-rel="tooltip" data-original-title="PC端登录" />');
                                break;
                            case 100:
                                $(td).html('<i class="fa fa-android bigger-120" data-rel="tooltip" data-original-title="Android端登录" />');
                                break;
                            case 300:
                                $(td).html('<i class="fa fa-apple bigger-120" data-rel="tooltip" data-original-title="iOS端登录" />');
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '35px', 'data': 'Inviter_ID', 'sName': 'Inviter_ID', 'sTitle': '邀', 'sClass': 'center', 'bSortable': false,
                    'createdCell': function (td, cellData) {
                        $(td).html(cellData > 0 ? $('<a/>').attr('data-openwindow', ':UserInfo:' + cellData).html('<i class="fa fa-check-square bigger-120 green" data-rel="tooltip" data-original-title="邀请人ID：' + cellData + '" />') : '');
                    }
                },
                {
                    'sWidth': '70px', 'data': 'SignUp_Anchor_ID', 'sName': 'SignUp_Anchor_ID', 'sTitle': '转化', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html(cellData > 0 ? $('<a/>').attr('data-openwindow', ':UserInfo:' + cellData).text(cellData) : '');
                    }
                },
                {
                    'sWidth': '80px', 'data': 'SignUp_Anchor_Family_ID', 'sName': 'SignUp_Anchor_Family_ID', 'sTitle': '转化主播', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html(cellData > 0 ? $('<a/>').attr('data-openwindow', ':UserInfo:' + cellData).text(cellData) : '');
                    }
                },
                {
                    'sWidth': '9%', 'data': 'Create_Date', 'sName': 'Log_ID', 'sTitle': '登录日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YY/MM/DD HH:mm'));
                    }
                },
                {
                    'sWidth': '9%', 'data': 'SignUp_Date', 'sName': 'User_ID', 'sTitle': '注册日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YY/MM/DD HH:mm'));
                    }
                }
            ],
            'bSort': false,
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_Login'),
            'sAjaxSource': '/ajax/log.page.userlogin',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_DateType: $(this.selector + '_F_DateType').val(),
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_SignUpOrigin: $(this.selector + '_F_SignUpOrigin').val(),
                        F_SignInOrigin: $(this.selector + '_F_SignInOrigin').val(),
                        F_SignInType: $(this.selector + '_F_SignInType').val(),
                        F_IsChargeFirst: $(this.selector + '_F_IsChargeFirst').is(':checked') ? 1 : -1,
                        F_IsIDCard: $(this.selector + '_F_IsIDCard').is(':checked') ? 1 : -1,
                        F_IsAnchor: $(this.selector + '_F_IsAnchor').is(':checked') ? 1 : -1,
                        F_IsFamily: $(this.selector + '_F_IsFamily').is(':checked') ? 1 : -1,
                        F_IsAdmin: $(this.selector + '_F_IsAdmin').is(':checked') ? 1 : -1
                    };
                } else {
                    $(this.selector + '_F_DateType').val(this.arrPageFilter.F_DateType);
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_SignUpOrigin').val(this.arrPageFilter.F_SignUpOrigin);
                    $(this.selector + '_F_SignInOrigin').val(this.arrPageFilter.F_SignInOrigin);
                    $(this.selector + '_F_SignInType').val(this.arrPageFilter.F_SignInType);
                    $(this.selector + '_F_IsChargeFirst').prop('checked', this.arrPageFilter.F_IsChargeFirst == 1);
                    $(this.selector + '_F_IsIDCard').prop('checked', this.arrPageFilter.F_IsIDCard == 1);
                    $(this.selector + '_F_IsAnchor').prop('checked', this.arrPageFilter.F_IsAnchor == 1);
                    $(this.selector + '_F_IsFamily').prop('checked', this.arrPageFilter.F_IsFamily == 1);
                    $(this.selector + '_F_IsAdmin').prop('checked', this.arrPageFilter.F_IsAdmin == 1);
                }
                this.ofnServerParams(aoData);
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _FooterData = {
                    Coin: 0,
                    Beans: 0
                };
                _.forEach(aData, function (ThisValue) {
                    _FooterData.Coin += ThisValue.Coin;
                    _FooterData.Beans += ThisValue.Beans;
                });
                $(nFoot).find('[name="Coin"]').attr({
                    'data-rel': 'tooltip',
                    'data-original-title': '金币价值总计：' + $.KOC.String.ToCurrencyPositiveStr(_FooterData.Coin / 1000)
                }).text(_FooterData.Coin);
                $(nFoot).find('[name="Beans"]').attr({
                    'data-rel': 'tooltip',
                    'data-original-title': '金豆价值总计：' + $.KOC.String.ToCurrencyPositiveStr(_FooterData.Beans / 1000)
                }).text(_FooterData.Beans);
            },
            'fnDrawCallback': function () {
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            }
        });
        //endregion
        //region dtpUserOperation
        $("#dtpUserOperation").dataTable({
            'aoColumns': [
                {
                    'sWidth': '100px', 'data': 'Log_ID', 'sName': 'Log_ID', 'sTitle': '日志ID', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData);
                    }
                },
                {
                    'sWidth': '100px', 'data': 'User_ID', 'sName': 'User_ID', 'sTitle': '用户ID', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html($('<a/>').attr('data-openwindow', ':UserInfo:' + cellData).text(cellData));
                    }
                },
                {
                    'data': 'NickName', 'sName': 'User_ID', 'sTitle': '昵称', 'sClass': 'center t-left',
                    'createdCell': function (td, cellData, rowData) {
                        $(td).html('<span class="Level_User_' + rowData.Level + '"></span>' + cellData);
                    }
                },
                {
                    'sWidth': '15%', 'data': 'Function_Code', 'sTitle': '操作代码', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '15%', 'data': 'Operation', 'sTitle': '操作内容', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '100px', 'data': 'Related_ID', 'sTitle': '渠道ID', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '10%', 'data': 'Related_URL', 'sTitle': 'URL', 'sClass': 'center', 'bSortable': false
                },
                {
                    'sWidth': '110px', 'data': 'Create_Date', 'sName': 'Log_ID', 'sTitle': '操作日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).format('YY/MM/DD HH:mm'));
                    }
                }
            ],
            'bSort': false,
            'bInfo': 'false',
            'iDisplayLength': 10,
            'PaginateElement': $('#divPaginate_Operation'),
            'sAjaxSource': '/ajax/log.page.useroperation',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_UserID: _PageData.User_ID,
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val()
                    };
                } else {
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                }
                this.ofnServerParams(aoData);
            },
            'fnDrawCallback': function () {
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            },
            'selectOpt': {}
        });
        //endregion
    });
</script>